package org.example.stock;

import feign.Logger;
import org.example.intercptor.CustomFeignIntorceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


public class FeignConfig {
    @Bean
    public Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL; // 或者使用其他级别
    }

    @Bean
    public CustomFeignIntorceptor customFeignInterceptor() {
        return new  CustomFeignIntorceptor();
    }
}
